#ifndef IMAGEVIEWWIDGET_H
#define IMAGEVIEWWIDGET_H

#include <QWidget>
#include "Tools/ToolState.h"

class QScrollArea;
class ImageViewArea;

class ImageViewWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ImageViewWidget(QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
    ~ImageViewWidget();

private:
    void initWidget();
    void connectSignalToSlots();

signals:
    void cursorPosChanged(QPoint& cursorpos);

public:
    void updateImageViewWidget();
    void setEnCurToolState(const ToolState &enCurToolState);

private:
    QScrollArea* m_pScrollArea;
    ImageViewArea* m_pImageViewArea;
};

#endif // IMAGEVIEWWIDGET_H
